package ad.android.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 交易记录
 * @author lenovo
 *
 */
@Entity
@Table(name = "tbl_adhost_business_record", catalog = "adproject")
public class AdHostBusinessRecord implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6330214796120448292L;
	/**
	 * 主键
	 */
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 交易号
	 */
	private String recordId;
	/**
	 * 交易额
	 */
	private Double businessValue;
	/**
	 * 日期
	 */
	private Date createTime;
	/**
	 * 类型
	 */
	private Integer businessType;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = true) 
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "RECORD_ID",length=255) 
	public String getRecordId() {
		return recordId;
	}
	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}
	@Column(name = "BUSINESS_VALUE") 
	public Double getBusinessValue() {
		return businessValue;
	}
	public void setBusinessValue(Double businessValue) {
		this.businessValue = businessValue;
	}
	@Column(name = "CREATE_TIME") 
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "BUSINESS_TYPE") 
	public Integer getBusinessType() {
		return businessType;
	}
	public void setBusinessType(Integer businessType) {
		this.businessType = businessType;
	}
	@Column(name = "USER_ID") 
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	
}
